/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn;

/**
 * <p>Project: jse2303 - User
 * <p>Powered by webrx On 2023-07-18 16:21:40
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class User {
    private int id;
    private String name;

    public User(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    protected void finalize() throws Throwable {
        System.out.println("垃圾被回收");
    }
}
